package com.cy.controller;

import com.cy.service.FeignService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
@AllArgsConstructor
public class FeignController {


    final FeignService feignService;

    @GetMapping(value = "test/hi")
    public String test(){

        return feignService.test("Hi feign");
    }
}
